// 页面重定向
const redirect = { 
    path: '/index/order',
    redirect: '/index/order/info'
}
// 页面路由
const pagePath = { 
    path: '/index/order', 
    component: import('@/views/order/Order.vue'),
    name: 'Order',
    children: [
        {
            path: '/index/order/info',
            component: import('@/views/order/info/Info.vue'),
            name: 'orderInfo'
        },
        {
            path: '/index/order/orderAudit',
            component: import('@/views/order/orderAudit/OrderAudit.vue'),
            name: 'orderAudit'
        },
        {
            path: '/index/order/orderDispatch',
            component: import('@/views/order/orderDispatch/OrderDispatch.vue'),
            name: 'orderDispatch'
        },
        {
            path: '/index/order/orderPayback',
            component: import('@/views/order/orderPayback/OrderPayback.vue'),
            name: 'orderPayback'
        },
        {
            path: '/index/order/setting',
            component: import('@/views/order/setting/Setting.vue'),
            name: 'ordersetting'
        }
    ]
}
// 父路由
const parent = '/index'

// 是否是一级路由
const levelOne = false

// 导出
const orderRouter = {
    redirect,
    pagePath,
    parent,
    levelOne
}
export {
    orderRouter
}